From bd2c11629e71637f8317de6d1608cfbd34ddadf4 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Mon, 14 May 2001 12:46:12 +0000 Subject: [PATCH] (split_font_name): Make sure to leave the loop with the right value of `i'. --- src/xfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfaces.c b/src/xfaces.c index a50ec9ae2a9..93acc8b5317 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -2205,9 +2205,10 @@ split_font_name (f, font, numeric_p) { char *p = xstrlwr (font->name) + 1; - for (; i < XLFD_LAST; ++i) + while (i < XLFD_LAST) { font->fields[i] = p; + ++i; /* Pixel and point size may be of the form `[....]'. For BNF, see XLFD spec, chapter 4. Negative values are -- 2.30.2